package com.hit.aircraftwar.supply;

import com.hit.aircraftwar.aircraft.HeroAircraft;


/**
 * @author LiuYuZhe
 */
public class HpSupply extends AbstractSupply {
    //effect是每个HpSupply增加的HP

    public HpSupply(int locationX, int locationY, int effect) {
        super(locationX, locationY, effect);
    }

    @Override
    public void effectActive() {
        HeroAircraft.getInstance().decreaseHp(-effect);
    }


}
